import ResurgenceWindow_Generate from "../ui-generate/ResurgenceWindow_generate";

export class AskAdsWindow extends ResurgenceWindow_Generate{
    private callback:Function
    private caller:any

    onStart(){
        this.btn_close.onClicked.add(()=>{
            UIService.hideUI(this)
        })
        this.btn_play.onClicked.add(()=>{
            UIService.hideUI(this)
            this.callback.call(this.caller)
        })
    }

    setInfo(callback:Function, caller:any){
        this.callback = callback
        this.caller = caller
    }
}